package com.xiaoyu.awakening.ai.control.tool;

import org.springframework.ai.chat.model.ToolContext;

import java.util.function.BiFunction;

public class WeatherTool implements BiFunction<String, ToolContext, String> {
    @Override
    public String apply(String city, ToolContext toolContext) {
        System.out.println(city);
        return "It's always sunny in " + city + "!";
    }
}